package com.dlc.shop.systemtest.api.login;

import com.dlc.shop.security.common.dto.AuthenticationDTO;
import com.dlc.shop.security.common.vo.TokenInfoVO;
import com.dlc.shop.systemtest.constants.Constant;
import com.dlc.shop.systemtest.util.HttpUtil;

/**
 * @author lanhai
 */
public class LoginApi {
    public static TokenInfoVO login(AuthenticationDTO authenticationDTO){
        String url = Constant.API_URL + "/login";
        return HttpUtil.post(url,authenticationDTO, TokenInfoVO.class,true);
    }
}
